<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.util.collection.model.Set</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.util.collection.model.Set");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/Set.d?rev=3461">tango.util.collection.model.Set</a></h1>
                
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>interface <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/Set.d?rev=3461#L35">Set</a></span>
<script>explorer.outline.addDecl('Set');</script>(T) : SetView!(T), Dispenser!(T);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">MutableSets support an include operations to add
 an element only if it not present. 
 
        </font><br><br>
<b>author:</b><br>Doug Lea
 @version 0.93<br><br> <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/Set.d?rev=3461#L50">add</a></span>
<script>explorer.outline.addDecl('add');</script>(T <span class="funcparam">element</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Include the indicated element in the collection.
 No effect if the element is already present.
 @param element the element to add
 </font><br><br>
<b>Returns:</b><br>
<br><br>
<b>condition:</b><br><PRE>
 has&#40;element&#41; &amp;&amp;
 no spurious effects &amp;&amp;
 Version change iff !PREV&#40;this&#41;.has&#40;element&#41;
 </PRE><br><br>
<b>Throws:</b><br>
IllegalElementException if !canInclude&#40;element&#41;<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/Set.d?rev=3461#L64">add</a></span>
<script>explorer.outline.addDecl('add');</script>(Iterator!(T) <span class="funcparam">e</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Include all elements of the enumeration in the collection.
 Behaviorally equivalent to
 <PRE>
 while &#40;e.more&#40;&#41;&#41; include&#40;e.get&#40;&#41;&#41;;
 </PRE>
 @param e the elements to include
 </font><br><br>
<b>Throws:</b><br>
IllegalElementException if !canInclude&#40;element&#41;<br><br>
<b>Throws:</b><br>
CorruptedIteratorException propagated if thrown<br><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                         :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Jun  8 17:12:54 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>